<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
    <table>
        <tbody>
        <volist name="userList" id="list">
            <tr data-id="{$list['id']}">
                <td class="sign">
                    <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 40px;">{$list.id}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 80px;">{$list.order_id}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 150px;">{$list.user_name}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.order_money}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname1}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money1}</div>

                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname2}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money2}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname3}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money3}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname4}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money4}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname5}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money5}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname6}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money6}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 60px;">{$list.nickname7}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.agent_money7}</div>
                </td>

                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$list.content}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$list.time}</div>
                </td>

                <td align="" class="" style="width: 100%;">
                    <div>&nbsp;</div>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<!--分页位置-->
{$page}
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function(){
            $(this).toggleClass('trSelected');
        });
        $('#user_count').empty().html("{$pager->totalRows}");
        $('#amount_agent').empty().html("{$amount_agent}");
        $('#amount_agent1').empty().html("{$amount_agent1}");
        $('#amount_agent2').empty().html("{$amount_agent2}");
        $('#amount_agent3').empty().html("{$amount_agent3}");
        $('#amount_agent4').empty().html("{$amount_agent4}");
        $('#amount_agent5').empty().html("{$amount_agent5}");
        $('#amount_agent6').empty().html("{$amount_agent6}");
        $('#amount_agent7').empty().html("{$amount_agent7}");
    });
    function delfun(obj) {
        // 删除按钮
        layer.confirm('确认删除？', {
            btn: ['确定', '取消'] //按钮
        }, function () {
            $.ajax({
                type: 'post',
                url: $(obj).attr('data-url'),
                data: {id : $(obj).attr('data-id')},
                dataType: 'json',
                success: function (data) {
                    layer.closeAll();
                    if (data.status == 1) {
                        $(obj).parent().parent().parent().remove();
                    } else {
                        layer.alert(data.msg, {icon: 2});
                    }
                }
            })
        }, function () {
        });
    }
</script>